package com.sinosoft.sinopay.service.merchant;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Dubbo服务测试类.
 */
public class DubboProvider 
{
    public static void main(String[] args){
    	try{
    		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring/spring-context.xml");
    		context.start();
    	}catch(Exception ex)
    	{
    		ex.printStackTrace();
    	}
    	synchronized (DubboProvider.class){
    		while(true){
    			try {
					DubboProvider.class.wait();
				} catch (InterruptedException e) {
					System.out.println("==============error==============:  " + e.getMessage());
				}
    		}
    	}
    }
}
